PHP $_SERVER['REMOTE_HOST'] returns ::1

Posted by Peter on Stack Overflow See other posts from Stack Overflow or by Peter
Published on 2010-03-20T05:15:05Z Indexed on 2010/03/20 5:21 UTC
Read the original article Hit count: 277

Filed under:
|
|

Hi

I am trying to get the IP address of the website visitor in PHP. I'm expecting $_SERVER['REMOTE_HOST'] to return something like 127.0.0.1, but it's returning ::1.

Kind regards

Peter

© Stack Overflow or respective owner

Related posts about php

Related posts about php5